﻿
Imports Moca.Attr
Imports Moca.Db.Attr
Imports Moca.Util

''' <summary>
''' グループエンティティ
''' </summary>
''' <remarks></remarks>
Public Class GroupEntity

	Protected tableDefinition As IGroupDefinistion

	''' <summary>
	''' ID
	''' </summary>
	''' <value></value>
	''' <returns></returns>
	''' <remarks></remarks>
	Public Property Id As Integer

	''' <summary>
	''' グループ名
	''' </summary>
	''' <value></value>
	''' <returns></returns>
	''' <remarks></remarks>
	<Caption("Group Name"),
	 BindControl("txtGroupName"),
	 Validate(ValidateTypes.Required Or ValidateTypes.LenghtMax)> _
	Public Property Name As String

End Class

#Region " Definition "

''' <summary> 
''' tbGroup エンティティ定義 
''' </summary> 
''' <remarks></remarks> 
''' <history> 
''' </history> 
<Table(Sys.C_CONNECTION_STRING, "tbGroup")>
Public Interface IGroupDefinistion

	''' <summary> 
	''' Table (Table) Property. 
	''' </summary> 
	Property Table() As Moca.Db.DbInfoTable

	''' <summary> 
	''' Name (Name) Property. 
	''' </summary> 
	<Column("Name")> _
	Property Name() As Moca.Db.DbInfoColumn

End Interface

#End Region
